/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package eypweb_bsc;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 *
 * @author Kohalmi Istvan
 */

// tranzakciotipusokat megvalosito osztaly
public class Transaction {
    // azonosito
    private int id;
    // megnevezes
    private StringProperty name;
    // darabszam valtozassal jar
    private StringProperty deltaVolume;
    // beszerzesei ertek csokkentessel jar
    private StringProperty decrAV;
    // elhatarolt kamat
    private StringProperty sepInterest;
    // elhatarolt osztalek
    private StringProperty sepDividend;
    // piaci arfolyam-külonbozet
    private StringProperty mktRateGain;
    // deviza arfolyam-kulonbozet
    private StringProperty curRateGain;
    // hataly kezdete
    private StringProperty startDate;
    // hataly vege
    private StringProperty endDate;
    // modositas flag
    private boolean modified;

    public Transaction() {
        modified = false;
    }

    public boolean getModified(){
        return modified;
    }
    
    public void setModified(){
        modified = true;
    }
    
    public void setId(int i)
    {
        id = i;
    }
    
    public int getId()
    {
        return id;
    }
    
    public StringProperty nameProperty() {
        if (name == null) {
            name = new SimpleStringProperty(this, "name");
        }
        return name;
    }

    public void setName(String value) {
        nameProperty().set(value);
    }

    public String getName() {
        return nameProperty().get();
    }

    public StringProperty startDateProperty() {
        if (startDate == null) {
            startDate = new SimpleStringProperty(this, "startDate");
        }
        return startDate;
    }

    public void setStartDate(String value) {
        startDateProperty().set(value);
    }

    public String getStartDate() {
        return startDateProperty().get();
    }

    public StringProperty endDateProperty() {
        if (endDate == null) {
            endDate = new SimpleStringProperty(this, "endDate");
        }
        return endDate;
    }

    public void setEndDate(String value) {
        endDateProperty().set(value);
    }

    public String getEndDate() {
        return endDateProperty().get();
    }
    
    public StringProperty deltaVolumeProperty()
    {
        if (deltaVolume == null) {
            deltaVolume = new SimpleStringProperty(this, "deltaVolume");
        }
        return deltaVolume;
    }
    
    public void setDeltaVolume(String value)
    {
        deltaVolumeProperty().set(value);
    }
    
    public String getDeltaVolume(){
        return deltaVolumeProperty().get();
    }
    
    public StringProperty decrAVProperty()
    {
        if (decrAV == null) {
            decrAV = new SimpleStringProperty(this, "decrAV");
        }
        return decrAV;
    }
    
    public void setDecrAV(String value)
    {
        decrAVProperty().set(value);
    }
    
    public String getDecrAV(){
        return decrAVProperty().get();
    }
    
    public StringProperty sepInterestProperty()
    {
        if (sepInterest == null) {
            sepInterest = new SimpleStringProperty(this, "sepInterest");
        }
        return sepInterest;
    }
    
    public void setSepInterest(String value)
    {
        sepInterestProperty().set(value);
    }
    
    public String getSepInterest(){
        return sepInterestProperty().get();
    }
    
    public StringProperty sepDividendProperty()
    {
        if (sepDividend == null) {
            sepDividend = new SimpleStringProperty(this, "sepDividend");
        }
        return sepDividend;
    }
    
    public void setSepDividend(String value)
    {
        sepDividendProperty().set(value);
    }
    
    public String getSepDividend(){
        return sepDividendProperty().get();
    }
    
    public StringProperty mktRateGainProperty()
    {
        if (mktRateGain == null) {
            mktRateGain = new SimpleStringProperty(this, "mktRateGain");
        }
        return mktRateGain;
    }
    
    public void setMktRateGain(String value)
    {
        mktRateGainProperty().set(value);
    }
    
    public String getMktRateGain(){
        return mktRateGainProperty().get();
    }
    
    public StringProperty curRateGainProperty()
    {
        if (curRateGain == null) {
            curRateGain = new SimpleStringProperty(this, "curRateGain");
        }
        return curRateGain;
    }
    
    public void setCurRateGain(String value)
    {
        curRateGainProperty().set(value);
    }
    
    public String getCurRateGain(){
        return curRateGainProperty().get();
    }
}
